package com.schedule.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.schedule.mapper.TickitPriceMapper;
import com.schedule.model.TickitPrice;


@Repository
public class TickitPriceDao implements TickitPriceMapper{
	@Autowired
	TickitPriceMapper tickitPriceMapper;

	@Override
	public List<TickitPriceMapper> findAll() {
		return tickitPriceMapper.findAll();
	}

	@Override
	public TickitPrice findById(String tpId) {
		return tickitPriceMapper.findById(tpId);
	}


	@Override
	public void deletePrice(String tpId) {
		tickitPriceMapper.deletePrice(tpId);
	}

	@Override
	public void addPrice(TickitPrice tickitPrice) {
		tickitPriceMapper.addPrice(tickitPrice);
	}

	@Override
	public void updatePrice(TickitPrice tickitPrice) {
		tickitPriceMapper.updatePrice(tickitPrice);
	}
	

}